package com.ruoyi.shop.controller;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.shop.service.SysUserService;
import com.ruoyi.shop.domain.SysUser;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author Sun
 * @Version 1.0
 * @description: TODO
 * @date 2023/1/6 19:00:43
 */
@RestController
@Slf4j
@RequestMapping("/shop")
public class SysUserController {

    @Resource
    private SysUserService sysUserService;

    @RequestMapping("/list-user")
    public R<SysUser> login() {
        return sysUserService.getUser();
    }

}
